package demo2;
//接口
class Animal{
    public String name;
    public Animal(String name){
        this.name = name;
    }
}

interface IRunning{
    int a = 10;//原形public static final int a = 10;
    public static void a(){
        System.out.println("a");
    }
    void run();//原型public abstract void run();
}

interface IFlying{
    void fly();
}

interface IWalking extends IRunning{
    void walk();
}

class Bird extends Animal implements IFlying{
    public Bird(String name) {
        super(name);
    }

    @Override
    public void fly() {

    }
}

class Dog extends Animal implements IRunning{
    public Dog(String name) {
        super(name);
    }

    @Override
    public void run() {

    }
}

public class Test {
    public static void main(String[] args) {
        IRunning iRunning = new Dog("haha");
    }
}
